﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="About"
	x:Name="Window"
	Title="About"
	Width="398" Height="198" WindowStyle="None" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" WindowStartupLocation="CenterScreen">

	<Window.Resources>
	
		<!-- Simple Button - This control sets brushes on each state. Note that these brushes must be listed above since they are static resources -->
		<Style x:Key="ConnectButton" TargetType="{x:Type Button}" BasedOn="{x:Null}">
			<!-- Setter Property="FocusVisualStyle" Value="{DynamicResource SimpleButtonFocusVisual}"/-->
			<Setter Property="Background" Value="#FF535353"/>
			<Setter Property="BorderBrush" Value="#FF535353"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
					
						<!-- We use Grid as a root because it is easy to add more elements to customize the button -->
						<Grid x:Name="Grid" Width="Auto" Height="Auto" HorizontalAlignment="Stretch">
							<Border x:Name="Border" Background="{x:Null}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
						
							<ContentPresenter HorizontalAlignment="Center" Margin="0,0,0,0" VerticalAlignment="Center" RecognizesAccessKey="True" Height="Auto" RenderTransformOrigin="0.5,0.5" d:LayoutOverrides="Width, Height">
								<ContentPresenter.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="0" AngleY="0"/>
										<RotateTransform Angle="0"/>
										<TranslateTransform X="0" Y="0"/>
									</TransformGroup>
								</ContentPresenter.RenderTransform>
							</ContentPresenter>
						
							<!-- Content Presenter is where the text content etc is placed by the control -->
						</Grid>
					
						<!--Each state sets a brush on the Border in the template -->
						<ControlTemplate.Triggers>
							<Trigger Property="IsKeyboardFocused" Value="true">
							
								<!-- Setter Property="BorderBrush" Value="{DynamicResource DefaultedBorderBrush}" TargetName="Border"/-->
							</Trigger>
							<Trigger Property="IsMouseOver" Value="true">
								<Setter Property="BorderBrush" Value="#FFFFCF01" TargetName="Border"/>
							</Trigger>
							<Trigger Property="IsPressed" Value="true">
								<Setter Property="Foreground" Value="#FF000000"/>
								<Setter Property="Background" Value="{DynamicResource HoverBrush}" TargetName="Border"/>
								<Setter Property="BorderBrush" Value="{DynamicResource HoverBrush}" TargetName="Border"/>
							</Trigger>
							<Trigger Property="IsEnabled" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
								<Setter Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/>
								<Setter Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>
	<Window.Background>
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF969696" Offset="0"/>
			<GradientStop Color="#FFA6A6A6" Offset="1"/>
		</LinearGradientBrush>
	</Window.Background>

	<Grid x:Name="LayoutRoot">
		<Border Margin="0,0,-1,0" VerticalAlignment="Top" Height="26.25" CornerRadius="5,4,0,0" BorderBrush="#00505050" BorderThickness="1,1,1,0" x:Name="Titlebar" Visibility="Visible">
			<Border.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FF969696" Offset="1"/>
					<GradientStop Color="#FFC2C2C2" Offset="0"/>
				</LinearGradientBrush>
			</Border.Background>
			<Label Height="Auto" Content="About" x:Name="Tblabel" FontStyle="Italic" d:IsStaticText="True" Width="Auto" HorizontalAlignment="Center"/>
		</Border>
		<Image HorizontalAlignment="Right" Margin="0,4,4,0" VerticalAlignment="Top" Width="14" Height="15" Source="..\Images\close.png" Stretch="Fill" x:Name="CloseButton"/>
		<Image HorizontalAlignment="Left" Margin="4,3,0,0" VerticalAlignment="Top" Width="21" Height="21" Source="..\Images\mChat.ico" Stretch="Fill"/>
		<Image Margin="69,2.334,66,53" Source="..\Images\mchat-About.png" Stretch="Fill"/>
		<Button Style="{DynamicResource ConnectButton}" Content="Ok" BorderThickness="1,1,1,1" Background="#FF5C5C5D" x:Name="OKButton" BorderBrush="#FF535353" FontFamily="Comic Sans MS" Foreground="#FF000000" RenderTransformOrigin="0.433,-0.126" HorizontalAlignment="Right" Width="86.995" VerticalAlignment="Bottom" Height="24" Margin="0,0,3.55,3.495">
			<Button.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="-360.296"/>
					<TranslateTransform X="-0.064" Y="0.021"/>
				</TransformGroup>
			</Button.RenderTransform>
		</Button>
		<TextBlock Margin="28,0,18,57" VerticalAlignment="Bottom" Height="23" Text="Version: {1}.{2}.{3}" TextWrapping="Wrap" TextAlignment="Center" x:Name="Version"/>
		
	</Grid>
</Window>